﻿using System;

namespace 枚举转换
{
    internal class Program
    {
        // 定义星期枚举
        internal enum Day { Sun, Mon, Tue, Wed, Thu, Fri, Sat }

        [Flags]
        public enum Temp : byte//这种格式的值大家应该都看得懂的吧，对吧
        {
            None = 0b_0000_0000,
            apple = 0b_0000_0001,
            banana = 0b_0000_0010,
            watermelon = 0b_0000_0100,
            pineapple = 0b_0000_1000
        }

        static void Main(string[] args)
        {
            Console.WriteLine("Day -> Int " + (int)Day.Sun);
            Console.WriteLine("Int -> Day " + (Day)6);

            Console.WriteLine((int)Temp.watermelon);
        }
    }
}
